<template>
  <div class="traffic-ctr__interaction full-width relative-position">
    <div class="carry-img">
      <q-skeleton v-if="!isLoad" class="fit" />
      <img :src="ImgPath" alt="" class="border-8" @load="load">
    </div>
    <div class="point-1">
      <slot name="start"></slot>
    </div>
    <div class="point-2">
      <slot name="end"></slot>
    </div>
  </div>
</template>

<script setup>
import { userStores } from 'stores/user-stores'
import { computed, ref } from 'vue'

const userStore = userStores()
const isLoad = ref(false)
const ImgPath = computed(() => `${userStore.OSSPath}/YF/PUBLIC/CARRYCTRL/Anime/1693365920985NORMAL.gif`)

const load = () => isLoad.value = true
</script>

<style lang="scss" scoped>
.point-1 {
  position: relative;
  left: calc(9.75% - 100px);
}

.point-2 {
  position: absolute;
  right: calc(12.25% - 100px);
}
</style>